package cn.springcloud.fix.common.core.support.concurrent;

import java.util.concurrent.Future;

public interface ListenableFuture<T> extends Future<T> {

    void addSuccessCallback(SuccessCallback<? super T> successCallback);

    void addFailureCallback(FailureCallback failureCallback);

    void addCallback(SuccessCallback<? super T> successCallback, FailureCallback failureCallback);

}
